package com.youth.youthservice.service;

import com.youth.commonutils.R;
import com.youth.youthservice.entity.announcement.UserAnnounceTags;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huangqicai
 * @since 2023-03-23
 */
public interface UserAnnounceTagsService extends IService<UserAnnounceTags> {

    boolean insertInfo(String announcementId, ArrayList<String> stuArrays, Integer userType);

    boolean deleteInfo(String annoId);

    /*根据公告id查询其所有用户集合*/
    List<UserAnnounceTags> selectUsersByannoId(String annoId,String flag);

    /*根据公告id查询其阅读量*/
    String selectUserViews(String annoId);

    /*-----------------------------*/
    /*根据用户id得到所有的公告id的集合*/
    List<UserAnnounceTags> selectAnnoByUserId(String userId);

    R confirm(String annoId);
}
